﻿<?php include_partial("default/tab", array('navbars' => $navbars)) ?>
<div id="vtns_body" class="clearfix">
	<div class="container-fluid">
	  <div class="row-fluid">
		<div class="span9">
			<!--BEGIN Body content-->
	<div id="slide">
    <div class="slider">
        <ul class="items">
	   	   <? 	 
								foreach ($slides as $slide)
								{
							?>
                                <li>
                                    <img src="/uploads/cms/<?php echo $slide['picture']?>" title="Rút hầm cầu Đà Nẵng" alt="Rút hầm cầu Đà Nẵng" />
                                </li>
                            <? 
								}	
                            ?>			
        </ul>
    </div>	
    <a href="#" class="prev"></a><a href="#" class="next"></a>  

	</div><!--End #slide-->
   <script>
            $(document).ready(function(){
                $('.form-1').jqTransform();
                $('.slider')._TMS({
                    show:0,
                    pauseOnHover:true,
                    prevBu:'.prev',
                    nextBu:'.next',
                    playBu:false,
                    duration:1000,
                    preset:'fade',
                    pagination:true,
                    pagNums:false,
                    slideshow:1000,
                    numStatus:false,
                    banners:false,
                    waitBannerAnimation:false,
                    progressBar:false
                })		
            });
        </script>
            
            <div class="row-fluid">
                <div class="span12">
                    <div class="box gradient vtns-box-blue">
                <?php
                foreach ($homeCmsCategoryDefault as $homeCmsCategory)
                {                  
                    ?>
                        <div class="title">
                            <h4><?php echo $homeCmsCategory['name']?></h4>
                        </div>
                        <div class="content" style="position:relative;">
                    <?
                    }
                    $homeCmsList = $homeCmsCategory['cms_array'];
                    foreach ($homeCmsList as $homeCms)
                    {
                    ?>
                        <div class="row-fluid">
                            <?php echo htmlspecialchars_decode($homeCms['content']); ?>
                        </div>
                        <div class="marginT10"></div>
                    <?
                   
                }
                ?>
                        </div>
                    </div>
                </div>
            </div>
			<?php
			
            $cnt = 0;
            foreach ($homeCmsCategoryList as $homeCmsCategory)
            {
                $cnt ++;
                if ($cnt % 2 == 1) 
                    echo '<div class="row-fluid">';
            ?>
            <div class="span6" style="display:none;">
                <div class="box gradient">
                    <div class="title">
                        <h4><?php echo $homeCmsCategory['name']?></h4>
                    </div>
                    <div class="content" style="position:relative;">
                        <?php
                        $homeCmsList = $homeCmsCategory['cms_array'];
                        if (count($homeCmsList) > 1) {
                            echo "<ul class='arrow arrow-blue'>";
                            $count = 0;
                            foreach ($homeCmsList as $homeCms)
                            {
                                if ((++ $count) < 8)
                                {
                            ?>
                                <li><a href="<?php echo url_for('cms/permalink?cms_category_id='.$homeCmsCategory['cms_category_id'].'&cms_id='.$homeCms['cms_id'].'-'.vtnsSEO::getPermalink($homeCms['name'])) ?>"><?=$homeCms['name']?></a></li>
                            <?
                                }
                            }
                            echo "</ul>";
                        } else if (count($homeCmsList) > 0) {
                            echo htmlspecialchars_decode($homeCmsList[0]['content']);
                        }
                        ?>
                    </div>
                </div>
            </div>
            <?
                if ($cnt % 2 == 0) 
                    echo '</div>';
            }
            ?>
            </div>
            <!--END Body content-->
		</div>
		<?php include_partial("default/rightHook", array('rightBlocks' => $rightBlocks)); ?>
	  </div>
	</div>
</div>
<?php include_partial("default/menuBottom", array('menuBottoms' => $menuBottoms)); ?>
<?php include_partial("default/bottom", array('bottom' => $bottom)); ?>